#include #include #include using namespace std; struct Height { int feet; int inches; }; struct SuperHero { //attributes, properties, member variables, members string name; string alias; string nemesis; int age; string power; double weight; Height height; //... }; void getHeight(Height& height) { cout << "Height (ft in)?"; cin >> height.feet >> height.inches; } void displayHeight(const Height& height) { cout << height.feet << "' " << height.inches << "\"" ; } void getSuperHero(SuperHero& superHero) { cout << "Name? "; getline(cin,superHero.name); cout << "Alias? "; getline(cin,superHero.alias); cout << "Nemesis? "; getline(cin,superHero.nemesis); cout << "Power? "; getline(cin,superHero.power); getHeight(superHero.height); } void displaySuperHero(const SuperHero& superHero) { cout << "Name = " << superHero.name << endl; cout << "Alias = " << superHero.alias << endl; cout << "Nemesis = " << superHero.nemesis << endl; cout << "Power = " << superHero.power << endl; cout << "Height = "; displayHeight(superHero.height); cout << endl; } void main() { SuperHero superHero; SuperHero superHeros[100]; getSuperHero(superHero); displaySuperHero(superHero); //superHero.name = "Batman"; //superHero.nemesis = "Joker"; //superHero.height.feet = 8; //superHero.height.inches = 11; }